package com.softeem.score.manager.mapper;

import com.softeem.score.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2024-02-14
 */
public interface SysMenuMapper {

    List<SysMenu> selectAll();

    void insert(SysMenu sysMenu);

    void updateById(SysMenu sysMenu);

    int countByParentId(@Param("id") Long id);

    void deleteById(@Param("id") Long id);

    List<SysMenu> selectListByUserId(@Param("userId") Long userId);

    SysMenu selectById(@Param("parentId") Long parentId);
}
